#include <iostream>
#include <vector>
#include <iterator>
#include <boost/algorithm/string.hpp>

using namespace std;
using namespace boost;

int main()
{
    cout << "--- Start ---" << endl;
    vector<string> vstr;
    split(vstr, "D, DP, 123", is_any_of(","));
    
    ostream_iterator<string> outite(cout, " ");
    copy(vstr.begin(), vstr.end(), outite);

    cout << "--- End ---" << endl;
    return 0;
}
